﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HealthcareSystem.Domain
{
    /// <summary>
    /// 居民行为信息
    /// </summary>
    [Table("behavior")]
    public class Behavior
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int BehaviorId { get; set; }
        /// <summary>
        /// 外键
        /// </summary>
        public int RecordId { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public bool BehaviorSmoke { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        public bool BehaviorCessation { get; set; }
        /// <summary>
        /// 是否被动吸烟者
        /// </summary>
        public bool BehaviorPassivity { get; set; }
        /// <summary>
        /// 是否饮酒
        /// </summary>
        public bool BehaviorDrink { get; set; }
        /// <summary>
        /// 是否运动
        /// </summary>
        public bool BehaviorExercise { get; set; }
        /// <summary>
        /// 高血压知晓情况
        /// </summary>
        public string? BehaviorHypertension { get; set; }
        /// <summary>
        /// 糖尿病知晓情况
        /// </summary>
        public string? BehaviorDiabetes { get; set; }
    }
}
